<?php
$qtip_config_file = dirname(__FILE__)."/config";

if(file_exists($qtip_config_file)) {
    $qtip_config = unserialize(file_get_contents($qtip_config_file));
}

if($qtip_config['aob']) {
    $t1 = glob(dirname(__FILE__)."/*.js");
    $t2 = glob(dirname(__FILE__)."/plugins/*.js");

    /*//Went with glob();
    $t = array(
            dirname(__FILE__)."/jquery.js",
            dirname(__FILE__)."/jqueryui.js",
            dirname(__FILE__)."/plugins/jquery.appendDOM.js",
    );
     */

    foreach($t1 as $i) {
        $html_head_code_lib[] = '<script type="text/javascript" src="'.__ADMIN_URL__.substr($i, strlen(__ADMIN_DIR__)).'"></script>';
    }
    foreach($t2 as $i) {
        $html_head_code[] = '<script type="text/javascript" src="'.__ADMIN_URL__.substr($i, strlen(__ADMIN_DIR__)).'"></script>';
    }
    $html_head_code_lib[] = '<link href="'.__ADMIN_URL__.'/modules/jQuery/css/redmond/jquery-ui.css'.'" type="text/css" rel="stylesheet" media="all" />';

}

?>